const fs = require("fs");
const path = require("path");

let dirNamePath = path.join(__dirname, "./data/创建线程.flv");

const ws = fs.createReadStream(dirNamePath);

let index = 1;
console.log(" ------ 开始读取 ------");
ws.on("data", (chunk) => {
  console.log(`chunk:长度：${chunk.length}, 个数：${index++}`);
});

ws.on("end", () => {
  console.log("------ 读取完成 ------");
});
